import request from '@/utils/request'
// 渲染账号
export function listRoleAXIOS(condition, currentPage, pageSize) {
  return request({
    url: `/ucenter/account/page?condition=${condition}&currentPage=${currentPage}&pageSize=${pageSize}`,
    method: 'post'
  })
}
//   新增数据
export function addRole(data) {
  return request({
    url: '/ucenter/account/insert',
    method: 'post',
    data
  })
}
// 查询账号列表
export function getRole(id) {
  return request({
    url: `/ucenter/account/query/${id}`
  })
}
// 编辑角色确认信息
export function updateRole(data) {
  return request({
    url: '/ucenter/account/update',
    method: 'post',
    data
  })
}
// 删除账号
export function deleteRole(id) {
  return request({
    url: `/ucenter/account/delete/${id}`,
    method: 'post'
  })
}
